package cn.qidd.keep.domain.document;


import cn.qidd.keep.domain.core.dict.EnableStatus;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Data
@Document(collection = "user")
public class User implements Serializable {
    @Id
    private String id;
    private String userName;
    private String password;
    private String realName;
    private String tel;
    private String remark;
    private Department department;
    private Set<Role> roles = new HashSet<>();
    private EnableStatus status;
    private Date operatorTime;
    private String operatorName;
    private String operatorRealName;
}
